this is due to the fact that diamond has perfect lattice structure which helps it to conduct heat but due to the absence of free electrons it cannot conduct electricity.
there are two modes to conduct heat :1) thraugh free electron transfer 2) thraugh lattice vibration .in diamond lattice vibration is dominant.
for further study read conduction heat tranfer .